package com.elder.business.service;

import java.util.List;

import com.alibaba.fastjson2.JSONObject;
import com.elder.business.domain.ElderlyApartmentAnnouncements;
import com.elder.business.domain.ElderlyApartmentAnnouncementsVO;
import com.elder.common.core.page.TableDataInfo;

/**
 * 公告信息Service接口
 * 
 * @author elder
 * @date 2023-11-26
 */
public interface IElderlyApartmentAnnouncementsService 
{
    /**
     * 查询公告信息
     * 
     * @param id 公告信息主键
     * @return 公告信息
     */
    public JSONObject selectElderlyApartmentAnnouncementsById(Long id);

    /**
     * 查询公告信息列表
     * @return 公告信息集合
     */
    public TableDataInfo selectElderlyApartmentAnnouncementsList(String title,String postedName, String postDate ,String expiryDate,Integer pageNum,Integer pageSize);

    /**
     * 新增公告信息
     * 
     * @param elderlyApartmentAnnouncements 公告信息
     * @return 结果
     */
    public int insertElderlyApartmentAnnouncements(ElderlyApartmentAnnouncements elderlyApartmentAnnouncements);

    /**
     * 修改公告信息
     * 
     * @param elderlyApartmentAnnouncements 公告信息
     * @return 结果
     */
    public int updateElderlyApartmentAnnouncements(ElderlyApartmentAnnouncementsVO elderlyApartmentAnnouncements);

    /**
     * 批量删除公告信息
     * 
     * @param ids 需要删除的公告信息主键集合
     * @return 结果
     */
    public int deleteElderlyApartmentAnnouncementsByIds(Long[] ids);

    /**
     * 删除公告信息信息
     * 
     * @param id 公告信息主键
     * @return 结果
     */
    public int deleteElderlyApartmentAnnouncementsById(Long id);

    public TableDataInfo getRecentAnnouncementsContent();
}
